<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html >
  <head>
    <base href="<%=basePath%>">
    
    <title>学习信息管理系统</title>
    



	<link rel="stylesheet" href="/css/bootstrap.min.css" >
	<link rel="stylesheet" type="text/css" href="/css/bootstrap-theme.min.css">

	<script src="/js/jquery.min.js"></script>
	<script src="/js/bootstrap.min.js"></script>
	<script src="/js/angular.min.js"></script>
	<script src="/controller/app.js"></script>

  </head>
  
  <body ng-app="phonecatApp">
	 
		
		<div class="panel panel-default"  ng-controller="PhoneListController">
			<div class="panel-heading">
				<h3 class="panel-title">学生信息管理系统登录</h3>
			</div>
			<div class="panel-body">

				<div class="input-group">
					<span class="input-group-addon" id="basic-addon1">用户名:</span>
					<input type="text" class="form-control" placeholder="请输入用户名" aria-describedby="basic-addon1" ng-model="user.username">
				</div>


				<div class="input-group">
						<span class="input-group-addon" id="basic-addon1">密码:</span>
						<input type="text" class="form-control" placeholder="请输入你的密码" aria-describedby="basic-addon1" ng-model="user.pass">
					</div>


					<div class="input-group">
						<span class="input-group-addon" id="basic-addon1">备注:</span>
						<textarea cols="100" rows="5" ng-model="remark"></textarea>

						<p>你输入了{{remark.length}}个字</p>
					</div>


					


					<div class="btn-group" role="group" aria-label="...">
							<button type="button" class="btn btn-primary"  ng-click="addToArray()" ng-disabled="user.username.length<3">添加</button>
							<button type="button" class="btn btn-danger" ng-hide="user.pass.length<3">重置</button>
					
						</div>


						<div class="container-fluid"   >

                             <table class="table">
                             <tr>
								 <th>序号</th>
								 <th>学号</th>
								 <th>姓名</th>
								 <th>性别</th>
								 <th>出生年月</th>
							 </tr>

							 <tr ng-repeat=" s in students">
									<th>{{$index+1}}</th>
									<th>{{s.xh}}</th>
									<th>{{s.xm}}</th>
									<th>{{s.xb}}</th>
									<th>{{s.csny.time |date:'yyyy年MM月dd日'}}</th>
								</tr>



							 </table>










                    <table class="table">
                    <tr>
                     <th>序号</th>
					 <th>用户名</th>
					 <th>密码</th>
					</tr>

                    <tr ng-repeat="u in users">
						<td>{{$index+1}}</td>
						<td>{{u.username}}</td>
						<td>{{u.pass}}</td>

					</tr>


					</table>







                          <div class="well">
							  你输入的用户名是:{{user.username}},密码是:{{user.pass}}
						  </div>



							<ul>
								<li ng-repeat="phone in phones">
								  <span>{{phone.name}}</span>
								  <p>{{phone.snippet}}</p>
								</li>
							  </ul>





						










								
							</div>



			</div>
		</div>



  </body>
</html>
